<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%
String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>用户设置</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="content-type" content="text/html;charset=UTF-8">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<jsp:include page="../common.jsp"/>
	<!-- 表单验证start -->
	<script src="libs/js/form/validationRule.js" type="text/javascript"></script>
	<script src="libs/js/form/validation.js" type="text/javascript"></script>
	<!-- 表单验证end -->
	<style type="text/css">
		.password_strength{padding: 0px}
	</style>
  </head>
  <body>
    <form action="sys/user/doSetting" method="post" target="frmright">
		<div class="box1" panelWidth="100%">
		<fieldset> 
			<legend>用户设置</legend> 
			<table class="tableStyle" formMode="transparent" footer="normal">
				<tr>
					<td width="15%">用&nbsp;&nbsp;户&nbsp;&nbsp;名：</td>
					<td width="35%">
						<input type="text" name="userAccount" class="validate[required,custom[noSpecialCaracters]]" watermark="请输入英文或数字">
						<span class="star">*</span>
					</td>
				</tr>
				<tr>
					<td width="15%">密&emsp;&emsp;码：</td>
					<td>
						<input type="password" id="password" name="userPassword" checkStrength="true" class="validate[required]">
						<span class="star">*</span>
					</td>
				</tr>
				<tr>
					<td width="15%">确认密码：</td>
					<td>
						<input type="password" class="validate[required,confirm[password]]"/>
						<span class="star">*</span>
					</td>
				</tr>
			</table>
		</fieldset> 
		<div class="height_5" style="font-size: 12px; color: red;">注：修改之后需要重新登录。</div>
		<div class="padding_top10">
			<table class="tableStyle" formMode="transparent">
				<tr>
					<td colspan="4">
						<input type="button" value="提交" id="button1"/>
						<input type="button" value="关闭" onclick="top.Dialog.close()"/>
					</td>
				</tr>
			</table>
		</div> 
	</div>
	</form>
	<script type="text/javascript">
		$(function(){
			$("#button1").click(function(){
				var valid=$("form").validationEngine({returnIsValid: true});
				if (valid) {
					$("form").submit();
					top.Dialog.close();
				} else {
					top.Dialog.alert("表单填写不正确，请按要求填写！");
				}
			});
		});
	</script>
  </body>
</html>